package com.beanconvert.xml.bean;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "TargetBean")
@XmlAccessorType(XmlAccessType.FIELD)
public class BeanInfo {

	@XmlAttribute
	private String name;
	
	@XmlElement(name = "srcbean")
	private List<SourceBean> beanArray;
	
	
	public BeanInfo(){
		
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public List<SourceBean> getBeanArray() {
		return beanArray;
	}


	public void setBeanArray(List<SourceBean> beanArray) {
		this.beanArray = beanArray;
	}


	@Override
	public String toString() {
		return "BeanInfo [name=" + name + ", beanArray=" + beanArray + "]";
	}

	
}
